//
//  VoucherModel.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/14.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "VoucherModel.h"

@implementation VoucherModel

+ (instancetype)modelWithDict:(NSDictionary *)dict {
    VoucherModel *model = [[VoucherModel alloc] init];
//    [model setValuesForKeysWithDictionary:dict];
    
    [model setAmount:dict[@"amount"]];
    [model setExpire_time:dict[@"expire_time"]];
    [model setId:dict[@"id"]];
    [model setLimit_amount:dict[@"limit_amount"]];
    [model setLimit_day:dict[@"limit_day"]];
    [model setName:dict[@"name"]];
    [model setSource_title:dict[@"source_title"]];
    [model setStatus:dict[@"status"]];
    return model;
}

@end
